home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 22
/
Cream of the Crop 22.iso
/
program
/
eflibpt4.zip
/
DEMO
/
TESTING
/
MEM2.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1996-07-21
|
773b
|
26 lines
{ Borland Pascal Extended Function Library - EFLIB (C) Johan Larsson, 1996
Testing; accessing memory allocations
EFLIB IS PROTECTED BY THE COPYRIGHT LAW AND MAY NOT BE COPIED, SOLD OR
MANIPULATED. FOR MORE INFORMATION, SEE PROGRAM MANUAL! THIS DEMONSTRAT-
ION PROGRAM MAY FREELY BE USED AND DISTRIBUTED. }
uses EFLIBMEM;
var Data : AllocationObjectType;
String1, String2 : string;
begin
String1 := 'It seems to work.';
String2 := 'It doesn''t work properly!';
with Data do begin
Initialize (SizeOf(String1));
Move (String1, DataPointer(0)^, DataSize);
Move (DataPointer(0)^, String2, DataSize);
WriteLn (String2);
Intercept;
end;
end.